<template>
    <!-- 站内信 -->
    <entity-manager :fields="fields" :queryFields="queryFields" apiPrefix="/base/inbox-msg" :tree="false" ref="entityManagerRef" :params="params"
                    operationsWidth="230px">
    </entity-manager>
</template>

<script setup>

import { ref } from "vue"

const fields = [
	{label: "标题", prop: "title", max: 255},
	{label: "内容", prop: "content", max: 255},
	{label: "接收用户", prop: "receiverId", max: 64},
	{label: "状态，0：未读，1：已读", prop: "status", },
	{label: "阅读时间", prop: "readTime", },
	{label: "附加数据", prop: "metadata", max: 512},
    {label: "添加时间", prop: "createTime", width: "160px", system: true},
    {label: "修改时间", prop: "updateTime", width: "160px", system: true}
]
const queryFields = []
const entityManagerRef = ref()
const params = ref({})

function reload() {
    entityManagerRef.value.reload()
}
</script>